package cate.common.table.activity.brightmythequipment.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.brightmythequipment.row.SuperRewardWeightAddRow;

public class SuperRewardWeightAddSheet extends ESheet<SuperRewardWeightAddRow> {
    @Override
    public String getSheetName() {
        return "超级大奖增加权重";
    }

    public SuperRewardWeightAddRow getRowByDrawTimes(int times) {
        SuperRewardWeightAddRow res = null;
        for (SuperRewardWeightAddRow row:
             getList()) {
            if (row.maxRange == -1) {
                if (row.minRange <= times) {
                    res = row;
                    break;
                }
            }else {
                if (row.minRange <= times && row.maxRange >= times) {
                    res = row;
                    break;
                }
            }
        }
        return res;
    }
}
